using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ReadyToUseTools
{
    /// <summary>
    /// <para>ServerTool 7</para>
    /// <para></para>
    /// <para></para>
    /// </summary>    
    [DisplayName("ServerTool 7")]
    public class RefreshMapAreaPackage : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RefreshMapAreaPackage()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_packages">
        /// <para>List of packages to update</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public RefreshMapAreaPackage(object _packages)
        {
            this._packages = _packages;
        }
        public override string ToolboxName => "Ready To Use Tools";

        public override string ToolName => "ServerTool 7";

        public override string CallName => "agolservices.RefreshMapAreaPackage";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_packages, _result];

        /// <summary>
        /// <para>List of packages to update</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("List of packages to update")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _packages { get; set; }


        /// <summary>
        /// <para>Update result</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Update result")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _result { get; set; }


        public RefreshMapAreaPackage SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}